<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

class UserInvite extends Model
{
    protected $table = 'user_invite';
    //public $timestamps = false;
    //const UPDATED_AT = null;

    /**
     * 自定义条件查询
     * @param $key
     * @param $value
     * @return mixed
     */
    public function findByWhere($key, $value)
    {
        return DB::table($this->table)->where($key, $value)->first();
    }
}
